<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>登录界面</title>
	<meta name="decorator" content="default"/>


	<script type="text/javascript">
		window.onload = myfun;
		var time = 0;
		function myfun()
		{
			time = document.getElementById("time").value;
			aa();
		}

		function aa() {
			var intDiff = parseInt(time);//倒计时总秒数量
			function timer(intDiff) {
				window.setInterval(function () {


					var day = 0,
							hour = 0,
							minute = 0,
							second = 0;//时间默认值
					if (intDiff > 0) {
						day = Math.floor(intDiff / (60 * 60 * 24));
						hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
						minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
						second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
					}
					if (minute <= 9) minute = '0' + minute;
					if (second <= 9) second = '0' + second;
					$('#day_show').html(day + "天");
					$('#hour_show').html('<s id="h"></s>' + hour + '时');
					$('#minute_show').html('<s></s>' + minute + '分');
					$('#second_show').html('<s></s>' + second + '秒');
					intDiff--;

					if(intDiff == 0){
						haha();
					}
				}, 1000);
			}

			$(function () {
				timer(intDiff);
			});
		}


	</script>








	<style type="text/css">
     .onw{
		 margin:0 auto;
		 /*background-color: #0000aa;*/
		 width: 1200px;
	 }

	</style>





</head>
<body>







<div class="onw">

 <div class="controls" style="height: 700px;width:1015px">

	 <div  class="controls" style="background-color:white;height: 700px;width: 700px;Float:left">

	 <div class="controls" style="line-height:100px;font-size:38px">&nbsp;&nbsp;&nbsp; &nbsp;信息安全教育实验平台 </div>
		 <div class="controls" style="height:100px"> </div>
		 <div class="controls" style="height: 600px;width: 700px ">
		 <div class="controls" style="height:500px;width: 200px;Float:left"> </div>

			 <c:if test="${mun == '1'}"> <img  alt="赛程未开启" style="width:300px;height: 250px;border:3px ;border:10px solid #00AEAE" src="${raceSchedule.scheduleLogo}"/></c:if>
			   <c:if test="${mun == '0' && ti == 0}"><label style="font-weight:bold;font-size: 18px;">赛程暂未开启</label></c:if>
			 <c:if test="${mun == '0' && ti == 1}">

				 <input id="time" type="hidden" value="${time}">

				 <label style="width: 120px;font-weight:bold;font-size: 14px;">距离开启时间还有:</label>
			  <span>
				  <strong id="hour_show">0时</strong>
		          <strong id="minute_show">0分</strong>
		          <strong id="second_show">0秒</strong>
			  </span>
			 </c:if>
		   </div>
	 </div>


      <div class="controls" style="height: 700px;width: 315px;Float:right">

          <div class="controls" style="height: 70px"></div>
		  <div class="controls"  style="line-height:40px;font-size:18px;text-align:center">

			  <c:if test="${mun == '0'}"><label style="font-weight:bold;font-size: 18px;">赛程暂未开启</label></c:if>
			  <c:if test="${mun == '1'}">${raceSchedule.scheduleName}</c:if>

		  </div>

		  <form id="inputForm" action="${ctxf}/race/raceLogin/login" method="post" class="form-horizontal">

			  <input type="hidden" name="repertoryId" value="${raceSchedule.repertoryId}">
			  <input type="hidden" name="judge" value="${raceSchedule.scheduleStatus}">
			  <input type="hidden" name="scheduleId" value="${raceSchedule.id}">

			  <div style="height: 30px"></div>
              <div style="line-height:30px">
				  <div style="Float:left;font-size:16px">用户名： </div>
				  <input name="user" type="text" style="Float:right">
			  </div>

			  <div style="height: 60px"></div>
			  <div style="line-height:30px">
				  <div style="Float:left;font-size:16px">&nbsp;&nbsp;&nbsp;密码： </div>
				  <input name="paw" type="password" style="Float:right">
			  </div>

			  <div style="height: 60px"></div>
			  <div style="line-height:30px">
				  <div style="Float:left;font-size:16px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>
				  <input type="submit" style="Float:right;width: 220px;height: 35px;font-size:16px" value="登录">
			  </div>

			  <div style="height: 80px"></div>
			  <div  style="height:200px;border:2px solid #7FFFD4 ">



			      <div style="line-height:40px;font-size:18px;text-align:center">比赛公告</div>

				  <label>

					${raceSchedule.scheduleNotice}

				  </label>

			  </div>
		  </form>

	  </div>






 </div>

</div>
</body>
</html>